﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _7DaysToDieTools
{
    public partial class FormLangEdit : Form
    {
        #region 变量定义
        public string EditString = "";
        #endregion

        #region 初始化
        public FormLangEdit()
        {
            InitializeComponent();
        }
        public FormLangEdit(Form pForm)
        {
            InitializeComponent();
            this.Location = new Point(pForm.Location.X + pForm.Width / 2 - this.Width / 2, pForm.Location.Y + pForm.Height / 2 - this.Height / 2);
        }
        #endregion

        private void buttOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            EditString = rtboxMain.Text;
            this.Close();
        }

        private void buttCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void FormLangEdit_Load(object sender, EventArgs e)
        {
            rtboxMain.Text = EditString;
        }
    }
}
